
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<% String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %>
<html>
<head>


    <title>Title</title>


</head>
<body>
<div class="container" style="border: 1px solid #CCCCCC;height: 1000px;">
    <div style="height:100px;border-bottom: 1px solid #CCCCCC;padding-top:30px;margin-bottom: 10px">
        <h2 class="h2">评论审核修改</h2>
    </div>

        <div class="form-group">
            <label for="username" class="col-sm-2 control-label">评论人：</label>
            <div class="col-sm-5">
                <input type="text" name="username" id="username" value="${comment.username}" readonly="readonly" />

            </div>
            <span></span>
        </div>
        <div class="form-group">
            <label for="bookTitle" class="col-sm-2 control-label">书本标题：</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="bookTitle" name="bookTitle" value="${comment.bookTitle}" readonly="readonly" />
            </div>
            <span></span>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">评论内容：</label>
            <div class="col-sm-5">
               ${comment.content}
            </div>
            <span></span>
        </div>
    <form  id="commentForm" method="post" action="<%=basePath%>comment/echo" >
        <input type="hidden"  name="comment_id" value="${comment.comment_id}" />
        <div class="form-group">
            <label for="flag" class="col-sm-2 control-label">审核状态：</label>
            <div class="col-sm-5">
                <select name="flag" id="flag" class="form-control" style="width: 100px">
                    <option value="">--请选择--</option>
                        <option value="0" ${comment.flag==0 ? "selected":""} >未审核</option>
                        <option value="1" ${comment.flag==1 ? "selected":""} >通过审核</option>
                        <option value="2" ${comment.flag==2 ? "selected":""} >未通过审核</option>
                </select>
            </div>
            <span></span>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2">
                <button type="submit" class="btn btn-lg btn-default" style="margin-left: 15px">
                    <span class='glyphicon glyphicon-plus'></span> 提交审核修改
                </button>
            </div>
        </div>
    </form>


</div>



</body>
</html>
